define(function(require, exports, module) {
	//var model = require("./model");
	var utils = require("utils");
	
	var view = Backbone.View.extend({
		el: "#sidebar",
		events: {
			'click button[role="openDoc"]': "fnOpenDoc"
		},
		initialize: function(options) { /** 初始化 */
			console.log(options.eventBus);
			//this.model = new model();
			//this.eventBus = options.eventBus;
			//this.eventBus.on('documentEdit', this.onDocumentEdit, this);
			Backbone.on('documentEdit', this.onDocumentEdit, this);
		},
		render: function() { /** 页面渲染 */
			
		},
		fnOpenDoc:function(){
			console.log("fnTest do something >>>>>>>>>>>>>>>");
		},
		onDocumentEdit:function(){
			console.log("sidebar do onDocumentEdit >>>>>>>>>>>>>>>");
		}
	});
	module.exports = view;
});